-
Notifications
You must be signed in to change notification settings - Fork 7.9k
video: fix dcmipp devicetree #94400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
video: fix dcmipp devicetree #94400
Conversation
The driver instance variable name is inst, not n. Signed-off-by: Phi Bang Nguyen <[email protected]>
The pipe nodes are not video interfaces. Describe them as normal child nodes instead of using port/endpoint. Signed-off-by: Phi Bang Nguyen <[email protected]>
9dcba5b
to
1ea37c5
Compare
|
pipes { | ||
compatible = "st,stm32-dcmipp-pipes"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
port@0 { | ||
pipe_dump: pipe@0 { | ||
reg = <0>; | ||
|
||
endpoint { | ||
remote-endpoint-label = ""; | ||
bus-type = <VIDEO_BUS_TYPE_PARALLEL>; | ||
}; | ||
}; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By reviewing #94081, it seems only n6 has multiple pipes and this one has just one pipe ? In this case, pipes {} node is not needed and we can remove compatible string too. Otherwise, need to add an if in the dcmipp driver when retrieving the pipe / pipes:
DT_FOREACH_CHILD_VARGS(DT_INST_CHILD(inst, pipes), DCMIPP_PIPE_INIT_DEFINE, inst);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, only the N6 has several pipe. Others have single pipe. Is that an issue to keep it as you propose with current patch ?
Aka always have pipes { } and below it one or more pipe@x entries ?
Thanks @ngphibang for the patches and sorry for the long delay for review/test/reply. I confirm this looks good to me and is working fine. #define STM32_DCMIPP_INIT(inst) \ part is all modified while actually the only modification is related to the DT_FOREACH_CHILD_VARGS, making it hard to notice. |
Uh oh!
There was an error while loading. Please reload this page.